package com.sunday.xxl.job.autoconfiguration;

import com.sunday.xxl.job.trace.TraceConstants;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * xxl-job yml 属性
 *
 * @author zsy
 * @since 2022/10/23
 */
@Data
@ConfigurationProperties(TraceConstants.XXL_JOB_PREFIX)
public class XxlJobProperties {

    private String adminAddresses;

    private String accessToken;

    private XxlJobExecutorProperties executor;

    @Data
    static class XxlJobExecutorProperties {

        private String appName;

        private String ip;

        private int port;

        private String logPath;

        private int logRetentionDays;

    }

}
